var o = new Object();

o[Symbol.iterator] = function () {
  var v = 0;
  return {
    next: function () {
      console.log(00);
      return { value: v++, done: v > 10 };
    },
  };
};

for (let i of o) {
  console.log(i);
}
